package org.esti.service.impl;

import org.esti.model.Level;
import org.esti.model.dao.LevelDAO;
import org.esti.service.LevelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Artem Loginov (logart)
 */

/**
 * {@inheritDoc}
 */
@Service
public class LevelServiceImpl implements LevelService {

    @Autowired
    private LevelDAO dao;

    /**
     * {@inheritDoc}
     */
    @Override
    public List<Level> getAllLevels() {
        return dao.getAllLevels();
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public Level getLevel(Long id) {
        return dao.get(id);
    }
}
